import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/base.css'
// 引入iconfont样式
import '@/assets/iconfont/iconfont.css'
// 引入组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 路由守卫
import './permission'
// 引入echarts
import echarts from '@/plugins/myEcharts'
// 注册全局组件
import componentPlugin from '@/components'
// 挂载到vue实例中
Vue.prototype.$echarts = echarts
Vue.use(componentPlugin) // 全局组件
Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: h => h(App)
}).$mount('#app')
